package com.salesmanager.core.business.common.model;

import java.util.HashMap;
import java.util.Map;

public enum CriteriaOrderBy {
	ASC, DESC;

    private static final Map<String,CriteriaOrderBy> map = new HashMap<String, CriteriaOrderBy>();

    static {
        for (CriteriaOrderBy criteriaOrderBy : CriteriaOrderBy.values()) {
            map.put(criteriaOrderBy.name(),criteriaOrderBy);
        }
    }

    public static CriteriaOrderBy getByName(String name){
        return map.get(name);
    }
}
